#backend
import requests
from socket import *

serSocket = socket(AF_INET,SOCK_STREAM)
addr = ('',3001)
serSocket.bind(addr)
serSocket.setsockopt(SOL_SOCKET,SO_REUSEADDR,1)
serSocket.listen(5)

cliSocket,cliAddr = serSocket.accept()
data = cliSocket.recv(1024)
con = requests.get(data)
con.encoding='utf8'

if con.ok:
    cliSocket.send(con.text.encode())
serSocket.close()